package swu.edu.cn.javaee.mapper;

import org.springframework.stereotype.Repository;
import swu.edu.cn.javaee.entity.Gmember;

import java.util.List;

@Repository
public interface GmemberMapper {
    //用户加群
    public void saveGmember(Gmember gmember);
    //查询群所有群员
    public List<Gmember> queryGmemberList(String gid);
    //查询群员人数
    public Integer counts(String gid);
    //查询群员加的所有群
    public Gmember queryMemberById(String uid,String gid);
    //群员退群
    public Gmember deleteMember(Gmember gmember);
}
